<?php
/**
 * @abstract All the resources have to be one word
 * 
 */
class User_BlockController extends Clu_Controller_Action_Mini
{
    public function loginAction()
    {
    	/*
		$weight = 1;
		$regionId = 5;
        $auth = Zend_Auth::getInstance();
        
        if ($auth->hasIdentity()) {
        	$userId = $auth->getIdentity()->id;
        	if (file_exists(APP_PATH."/public/ufiles/$userId/images/original/avatar/avatar.jpg"))
				$this->view->avatar_image = "/public/ufiles/$userId/images/%s/avatar/avatar.jpg?";
        
       		 $this->renderToHolder('block/userInfoBox_Region5.phtml', $regionId, $weight);
        }
        else
        {
	        $this->renderToHolder('block/login.phtml', $regionId, $weight);
        }
		*/
    	$theme = $this->miniRequest['theme'];
    	$regionId = $this->miniRequest['regionId'];
    	$boxWeight = $this->miniRequest['boxWeight'];
        $this->renderToHolder('block/'. $theme .'/userInfoBox_Region1.phtml', false, null, $regionId, $boxWeight);
    }
    
    public function tabMenuAction()
    {
    	$id = $this->miniRequest['id'];
    	$type = $this->miniRequest['type'];
    	$this->view->id = $id;
    	$this->view->type = $type;
    	$regionId = $this->miniRequest['regionId'];
    	$boxWeight = $this->miniRequest['boxWeight'];
    	$this->view->currentTab = $this->miniRequest['currentTab'];
    	$this->renderToHolder('block/tabMenu.phtml', false, null, $regionId, $boxWeight);
    }
}    